package io.github.talelin.latticy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者:可
 * 时间:2021/7/14 10:44
 * 描述:永无BUG
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("adv")
//广告信息
public class AdvDO{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //标题
    private String advTitle;
    //图片路径
    private String advImg;
    //排序
    private Integer sort;
    //状态 (1:正常，0:禁用)
    private Integer statusId;
    //广告链接
    private String advUrl;
    //广告跳转方式
    private String advTarget;
    //创建时间
    @JsonIgnore
    private Date gmtCreate;
    //修改时间
    @JsonIgnore
    private Date gmtModified;
    //广告位置 (1首页轮播)
    private Integer advLocation;
    //开始时间
    @JsonIgnore
    private Date beginTime;
    //结束时间
    @JsonIgnore
    private Date endTime;
    //位置 (0电脑端，1微信端)
    private Integer platShow;
}
